package cn.iocoder.yudao.adminserver.franky.single;

import java.util.concurrent.atomic.AtomicLong;

/**
 * @Description:
 * @Author: franky
 * @CreateDate: 2021/4/15 9:25 下午
 * @Version: 1.0
 */
public enum IdGeneratorEnum {
    INSTANCE;
    private AtomicLong atomic = new AtomicLong(0);

    public long getId() {
        return atomic.incrementAndGet();
    }
}
